//
//  UIScrollViewExtension.swift
//  DBCA
//
//  Created by mugua on 2024/7/3.
//

import UIKit
 
extension UIScrollView {
    
    func setupRefreshHeader(completion: @escaping (() -> Void)) {
        let header = MJRefreshNormalHeader {
            completion()
        }
        
        header.lastUpdatedTimeLabel?.isHidden = true
        header.stateLabel?.isHidden = true
        self.mj_header = header
        
    }
    
}
